
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <div class="portlet light">
            <div class="portlet-body">
                <div class="">
                    <h3 class="text-center exam-title">  </h3>
                    <div class="table-scrollable">
                        <table class="table table-striped table-bordered table-advance table-hover">
                            <tbody>
                            <tr>
                                <td width="25%">
                                    <label class="control-label"> 参考人 </label>
                                    <p class=""><b> {$info.userName} </b></p>
                                </td>
                                <td width="25%">
                                    <label class="control-label"> 分数 </label>
                                    <p class=""><b> {$info.score} </b></p>
                                </td>
                                <td width="25%">
                                    <label class="control-label"> 答对题 </label>
                                    <p class=""><b> {$info.totalCorrects} </b></p>
                                </td>
                                <td width="25%">
                                    <label class="control-label"> 答错题 </label>
                                    <p class=""><b> {$info.totals - $info.totalCorrects} </b></p>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <div class="" style="max-height: 400px;overflow-y: auto;">
                    <h3> 题目 </h3>
                    <div class="form-body">
                        {foreach name="info.examresults" item="examquestions" key="examKey"}
                        <div class="form-group">
                            {php}
                            $options = json_decode($examquestions['option'], true);
                            switch($examquestions['type']){
                                case 1: $type = '单选题'; break;
                                case 2: $type = '多选题'; break;
                                case 3: $type = '判断题'; break;
                                default: break;
                            }
                            {/php}
                            <label>{$examquestions.number}、{$examquestions.subject} 【{$type}，{$examquestions.score}分】</label>
                            <div class="md-checkbox-list">
                                {php}$options = json_decode($examquestions['option'], true);{/php}
                                {volist name="options" id="option"}
                                <div class="md-checkbox">
                                    <input type="checkbox" class="md-check" {if condition="(in_array($option['option_NO'], explode(',', $examquestions['answer'])))"}checked="checked"{/if} disabled>
                                    <label>
                                        <span class="inc"></span>
                                        <span class="check"></span>
                                        <span class="box"></span>
                                        {$option.option_NO}、{$option.option_value}
                                    </label>
                                </div>
                                {/volist}
                            </div>
                            {php}$examquestions['correctAnswer'] = str_replace(',', '、', $examquestions['correctAnswer']);{/php}
                            <p>正确答案：{$examquestions.correctAnswer}</p>
                        </div>
                        {/foreach}
                    </div>
                </div>
            </div>
        </div>
        <!-- END SAMPLE FORM PORTLET-->
    </div>
</div>
